package cn.com.hd.mall.web.webservices.entity.response.merch.base;

import java.util.Collections;
import java.util.List;

/**
 * User: Geek_Soledad(wuhaiyang@danlu.com)
 * Date: 2016-08-05
 * Time: 10:18
 * Description: .....
 */
public class BaseMerchListModel {

    //商品ID
    private String merchId;
    //商品名称
    private String merchName;
    //卖家ID
    private String sellerId;
    //卖家名称
    private String sellerName;
    //是否有货 0-有货 1-暂时缺货
    private String merchStatus;
    //是否促销 0-促销 1-不是促销
    private String isPromotion;
    //丹露价
    private String danluPrice;
    //促销信息
    private String goodsPromotionInfo;
    //是否推荐 0-推荐 1-不是推荐
    private String isRecommended;
    //最小起售数量
    private String minSaleNumber;
    //促销详细信息
    private List<String> promotionList;
    //商品规格(单位)
    private String merchSpec;
    //图片
    private String picUrl;
    //获取商品列表特有字段  多了一个零售价
    private String retailPrice;

    public BaseMerchListModel () {
        this.merchId = "";
        this.merchName = "";
        this.sellerId = "";
        this.sellerName = "";
        this.merchStatus = "";
        this.isPromotion = "";
        this.danluPrice = "";
        this.goodsPromotionInfo = "";
        this.isRecommended = "";
        this.minSaleNumber = "";
        this.promotionList = Collections.emptyList ();
        this.merchSpec = "";
        this.picUrl = "";
        this.retailPrice = "";
    }

    public String getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(String retailPrice) {
        this.retailPrice = retailPrice;
    }

    public String getMerchId() {
        return merchId;
    }

    public void setMerchId(String merchId) {
        this.merchId = merchId;
    }

    public String getMerchName() {
        return merchName;
    }

    public void setMerchName(String merchName) {
        this.merchName = merchName;
    }

    public String getSellerId() {
        return sellerId;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }

    public String getSellerName() {
        return sellerName;
    }

    public void setSellerName(String sellerName) {
        this.sellerName = sellerName;
    }

    public String getIsPromotion() {
        return isPromotion;
    }

    public void setIsPromotion(String isPromotion) {
        this.isPromotion = isPromotion;
    }

    public String getDanluPrice() {
        return danluPrice;
    }

    public void setDanluPrice(String danluPrice) {
        this.danluPrice = danluPrice;
    }

    public String getGoodsPromotionInfo() {
        return goodsPromotionInfo;
    }

    public void setGoodsPromotionInfo(String goodsPromotionInfo) {
        this.goodsPromotionInfo = goodsPromotionInfo;
    }

    public String getIsRecommended() {
        return isRecommended;
    }

    public void setIsRecommended(String isRecommended) {
        this.isRecommended = isRecommended;
    }

    public String getMinSaleNumber() {
        return minSaleNumber;
    }

    public void setMinSaleNumber(String minSaleNumber) {
        this.minSaleNumber = minSaleNumber;
    }

    public List<String> getPromotionList() {
        return promotionList;
    }

    public void setPromotionList(List<String> promotionList) {
        this.promotionList = promotionList;
    }

    public String getMerchStatus() {
        return merchStatus;
    }

    public void setMerchStatus(String merchStatus) {
        this.merchStatus = merchStatus;
    }

    public String getMerchSpec() {
        return merchSpec;
    }

    public void setMerchSpec(String merchSpec) {
        this.merchSpec = merchSpec;
    }

    public String getPicUrl() {
        //bug#5822
        if (null != picUrl && !picUrl.equals("")) {
            if (!picUrl.contains("http")) {
                picUrl = "http:" + picUrl;
            }
        }
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }



}  
